import store from '@/store'
/**
 * @type {import('@/types/global').calWidth}
 */
const calWidth = (cn, jp, en) => {

  const language = store.getters.language

  /**默认width */
  const defaultWidth = 150

  switch (language) {

    case 'zh_CN':
      return cn || defaultWidth

    case 'ja_JP':
      return jp || defaultWidth

    case 'en_US':
      return en || defaultWidth

    default:
      return defaultWidth
  }
}

export default calWidth
